package JAVASE515;

public class JAVAreturn {
    public static void main(String[] argc){
        double sum1=money(12.12,456.12,124.435);
        double sum2=money(53.234,123.234,89.12);
        double sum3=money(456.31234,49.234,124.435);
        double sum4=money(23.234,46.256,12.123);
        double sum=sum2+sum1+sum4+sum3;
        System.out.println("全年营业总额为："+sum);
    }
    public static double money(double a,double b,double c){
        double Quater=a+b+c;
        return Quater;
    }
}
